<!--
<header id="header" class="container">


    <div id="search-box" class="search-box">
        <div class="inner-warp">
            <div class="s-nav">
                <a class="logo" href="{SITE_URL}">
                    <img src="{STATIC_URL}web/images/logo_83ae7e2.png"
                         width="137" height="46" alt="诸葛经验"/>
                </a>
            </div>
            <form action="/search" name="top-search-form" method="get" id="top-search-form" class="top-search-form">
                <div class="clearfix box">
<span class="s-ipt-wr">
<input x-webkit-speech x-webkit-grammar="bUIltin:search" class="hdi" id="kw" autoComplete="off" maxlength="256"
       tabindex="1" size="46" name="word" value=''/>
</span>
                    <span class="s-btn-wr">
<input type="submit" class="s-btn" id="sb" value="搜索经验">
</span><span class="s-tools">
</span>
                    <div class="clear"></div>
                </div>
            </form>
        </div>
    </div>

</header>-->

<nav class="nav">

    <div id="nav-wrap" class="nav-wrap clearfix">
        <ul class="main-menu clearfix" alog-group="main-menu">
            <li class="main-menu-item">
                <a class="main-menu-title" href="{SITE_URL}" target="_self">首页</a>
            </li>
            <li class="main-menu-item">
                <a class="main-menu-title" href="javascript:void(0)"
                   id="all-category-a-e" class="cat-flag">分类</a>
                <span class="dir-icon"></span>
                <div class="sub-menu sub-menu-category">
                    <ul class="sub-menu-items clearfix">

                        {m:nav field="catid,catname,arrchildid,pclink,type" where="parentid=0" limit="20"}
                        {loop $data $k=>$v}
                        <li class="sub-menu-item-box {if ($k+1)%2==0 }even{/if}">
                            <a class="sub-menu-item"  href="{$v[pclink]}" {if $v['type']==2} target="_blank" {/if}>{$v[catname]}</a>
                                                                                 <!-- 这里是二级栏目的循环，不需要的可以删除，代码开始 -->
                                                                                 {if $v['arrchildid']!=$v['catid']}
                                                                                 {php $r = get_childcat($v['catid']);}
                          <!--  <ul class="sub_nav">
                                {loop $r $v}
                                <li><a href="{$v[pclink]}">{$v[catname]}</a></li>
                                {/loop}
                            </ul>-->
                                                                                 {/if}
                                                                                 <!-- 这里是二级栏目的循环，不需要的可以删除，代码结束 -->
                        </li>
                        {/loop}


                    </ul>
                </div>
            </li>

        </ul>
    </div>
</nav>